import Http from "@/http"

export function pageApi(params:any) {
    return Http.post('teacher/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('teacher/update/' + params.id, params) : Http.post('teacher/add', params)
}

export function deleteApi(id) {
    return Http.delete('teacher/delete/' + id)
}


export function pullApi() {
    return Http.post('teacher/pull')
}


export function secrecySeeApi(id:number, field:string, password:string, ) {
    return Http.post("teacher/secrecy/" + id, {password, field})
}